package com.bugsnag.ohos;

/**
 * KeyValueWriter
 *
 * @since 2021-07-02
 */
public class KeyValueWriter {
    private static final String KEY_VALUE_DELIMITER = "=";
    private StringBuilder sb = new StringBuilder();

    void add(String key, Object value) {
        sb.append(key + KEY_VALUE_DELIMITER + value).append(System.getProperty("line.separator"));
    }

    @Override
    public String toString() {
        return sb.toString();
    }
}
